//
//  MFWMacroUtils.h
//  MFWSdk
//
//  Created by Song Xiaofeng on 13-7-23.
//  Copyright (c) 2013年 Mafengwo Inc. All rights reserved.
//

#ifndef MFWSdk_MFWMacroUtils_h
#define MFWSdk_MFWMacroUtils_h

//判断两个float是否相等
#define IS_FLOAD_EQUALS(_fa_, _fb_) ( fabs( ( double )_fa_ - ( double )_fb_ ) < DBL_EPSILON )

//输入调试信息，替代NSLOG，如：DLog(@"Hello %@", @"mafengwo")
#ifdef DEBUG
#define DLog(fmt, ...) NSLog((@"%s [Line %d] " fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__);
#else
#define DLog(...)
#endif

#define IS_SCREEN_4INCH ( fabs( ( double )[ [ UIScreen mainScreen ] bounds ].size.height - ( double )568 ) < DBL_EPSILON )



#endif
